import * as THREE from 'three';

const geometry = new THREE.BoxGeometry(50, 50, 50);
const material = new THREE.MeshLambertMaterial({
    color: 0x00ffff
})
const mesh = new THREE.Mesh(geometry, material);

mesh.position.x = 50;
const group = new THREE.Group();
group.add(mesh);
group.position.x = 50

// 创建三维向量表示坐标
const v3 = new THREE.Vector3();
// 获取对象的世界坐标
mesh.getWorldPosition(v3);
console.log(v3);

//可视化mesh的局部坐标
const meshAxesHelper = new THREE.AxesHelper(100);
mesh.add(meshAxesHelper);
mesh.position.y = 40

export default group;